Skip to content

Conversation

@actuarysailor
Copy link

@actuarysailor actuarysailor commented Aug 10, 2025

🎯 Overview

This PR migrates the README template generation system to use a dedicated readme generator tool maintained in a separate repository, and integrates it into this project via pre-commit hooks. This enables automated, consistent, and professional README generation as part of the development workflow.

Note: This builds on #152 and #153. If you see additional file changes, it's because those PRs have not yet been merged.


✨ Features & Improvements

🛠️ Pre-commit Integration

  • Automated README generation using the external pre-commit-readme-generator tool.
  • Pre-commit hooks ensure README is always up-to-date and linted before commits.
  • No generator code in this repo—all logic is maintained and versioned in the external tool.

📋 Template & Config Enhancements

  • Full-featured example config (configs/example.json) for flexible project documentation.
  • Enhanced Handlebars template (BLANK_README.md) supporting dynamic sections, badges, roadmap, and contact info.
  • Professional output: Clean, production-ready README files with proper formatting, badges, and social/contact sections.

🧩 Workflow & Developer Experience

  • No manual README edits required—just update your config and template, and let the tool handle the rest.
  • Markdownlint compliance: Strategic disables/enables in the template for clean output.
  • Easy to update: Upgrade the generator tool version in .pre-commit-config.yaml to get new features or fixes.

🔄 Usage

  • README is auto-generated on every commit via pre-commit.
  • To manually regenerate:
    pre-commit run readme-generator-update

📁 Files Added/Modified

Added

  • .pre-commit-config.yaml — Adds hook for external generator tool.
  • configs/example.json — Full-featured example configuration.
  • configs/minimal.json — Minimal configuration template.

Modified

  • BLANK_README.md — Enhanced Handlebars template for dynamic README generation.
  • .gitignore — Ensures node_modules, venv, and generated files are ignored.

Removed

  • Local generator scripts (all logic now lives in the external tool).

✅ Testing

  • README generation passes markdownlint.
  • All badges and contact sections render as expected.
  • Roadmap and installation steps display correctly.
  • Template comments are removed from output.

🚀 Impact

This PR modernizes and automates README management, ensuring every commit maintains high-quality, consistent documentation with minimal developer effort.


🔗Related Issues

Closes #154

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdown Linting #152

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdown Linting #152

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what these were... should they be part of the repo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what these were... should they be part of the repo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what these were... should they be part of the repo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what these were... should they be part of the repo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what these were... should they be part of the repo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdown Linting #152

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New for this PR - auto generates the readme everytime there is an update to the config.json or the template file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to have handlebars for the config.json file for auto readme generation

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdown Linting #152

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these changes were captured in Markdown Linting #152
That said, if you approve that PR, these changes should be reduced and you will see the net impact of using the generating file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parameter file used for the automatic generation of Readme.md

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FAQ PR #153

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You were missing a .gitignore and I ran some tests etc. with code tools locally, so I made one to just make it simple to not need to clean the directory tree all the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarification needed: "Add Additional Templates w/ Examples" roadmap item

1 participant